const Router = require('@koa/router')
const router = Router({
    prefix: '/api'
})

const userController = require('../controllers/userController');
const userService = require('../services/userService');
router.post('/getAllusers', userController.allUsers)
router.post('/register', userController.register)
router.post('/login', userController.login)
router.post('/editor', userController.editor)
router.post('/fileImg',userController.fileImg)
router.post('/publicImg',userController.publicImg)
router.post('/getmessages',userController.getmessages)
router.post('/ownerMessages',userController.ownerMessages)
router.post('/getOnlyMessage',userController.getOnlyMessage)
router.post('/savaRegister',userController.savaRegister)
router.post('/addGood',userController.addGood)
router.post('/removeGood',userController.removeGood)
router.post('/deletePublicImg',userController.deletePublicImg)
router.post('/addAttention',userController.addAttention)
router.post('/addComment',userController.addComment)
router.post('/searchComment',userController.searchComment)
router.post('/searchAttention',userController.searchAttention)
module.exports = router.routes()